#include "userinfo.h"
#include "QDebug"

UserInfo::UserInfo()
{
    m_id.clear();
    m_name.clear();
    m_pswd.clear();
}

UserInfo::UserInfo(const QString &id, const QString &name, const QString &pswd)
{
    m_id = id;
    m_name = name;
    m_pswd = pswd;
}

void UserInfo::dispalay(void)
{
    qDebug() << "ID: " << m_id;
    qDebug() << "Name: " << m_name;
    qDebug() << "Pswd: " << m_pswd;
}

void UserInfo::setID(const QString &id)
{
    m_id = id;
}

void UserInfo::setName(const QString &name)
{
    m_name = name;
}

void UserInfo::setPswd(const QString &pswd)
{
    m_pswd = pswd;
}

const QString &UserInfo::getID() const
{
    return m_id;
}

const QString &UserInfo::getName() const
{
    return m_name;
}

const QString &UserInfo::getPswd() const
{
    return m_pswd;
}
